package com.itxiaoxiong.openone.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Review implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 评价Id
     */
    private Long reviewId;

    /**
     * 剧本Id, 外键
     */
    private Long scriptId;

    /**
     * 用户Id,外键
     */
    private Long userId;

    /**
     * 评分1~5
     */
    private Integer rating;

    /**
     * 评论内容
     */
    private Integer comment;

    /**
     * 创造时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     *修改时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
